<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.9.1"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>Doxygen: apps/point_cloud_editor/include/pcl/apps/point_cloud_editor/toolInterface.h 源文件</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">Doxygen
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- 制作者 Doxygen 1.9.1 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'搜索','.html');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','搜索');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(document).ready(function(){initNavTree('tool_interface_8h_source.html',''); initResizable(); });
/* @license-end */
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="headertitle">
<div class="title">toolInterface.h</div>  </div>
</div><!--header-->
<div class="contents">
<a href="tool_interface_8h.html">浏览该文件的文档.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span>&#160; </div>
<div class="line"><a name="l00042"></a><span class="lineno">   42</span>&#160;<span class="preprocessor">#ifndef TOOL_INTERFACE_H_</span></div>
<div class="line"><a name="l00043"></a><span class="lineno">   43</span>&#160;<span class="preprocessor">#define TOOL_INTERFACE_H_</span></div>
<div class="line"><a name="l00044"></a><span class="lineno">   44</span>&#160; </div>
<div class="line"><a name="l00045"></a><span class="lineno">   45</span>&#160;<span class="preprocessor">#include &lt;<a class="code" href="local_types_8h.html">pcl/apps/point_cloud_editor/localTypes.h</a>&gt;</span></div>
<div class="line"><a name="l00046"></a><span class="lineno">   46</span>&#160; </div>
<div class="line"><a name="l00048"></a><span class="lineno"><a class="line" href="class_tool_interface.html">   48</a></span>&#160;<span class="keyword">class </span><a class="code" href="class_tool_interface.html">ToolInterface</a></div>
<div class="line"><a name="l00049"></a><span class="lineno">   49</span>&#160;{</div>
<div class="line"><a name="l00050"></a><span class="lineno">   50</span>&#160;  <span class="keyword">public</span>:</div>
<div class="line"><a name="l00052"></a><span class="lineno"><a class="line" href="class_tool_interface.html#a6cbd00e85c2e49d19bf30ca06a0cf1ab">   52</a></span>&#160;    <span class="keyword">virtual</span> <a class="code" href="class_tool_interface.html#a6cbd00e85c2e49d19bf30ca06a0cf1ab">~ToolInterface</a> ()</div>
<div class="line"><a name="l00053"></a><span class="lineno">   53</span>&#160;    {</div>
<div class="line"><a name="l00054"></a><span class="lineno">   54</span>&#160;    }</div>
<div class="line"><a name="l00055"></a><span class="lineno">   55</span>&#160; </div>
<div class="line"><a name="l00065"></a><span class="lineno">   65</span>&#160;    <span class="keyword">virtual</span></div>
<div class="line"><a name="l00066"></a><span class="lineno">   66</span>&#160;    <span class="keywordtype">void</span></div>
<div class="line"><a name="l00067"></a><span class="lineno"><a class="line" href="class_tool_interface.html#a5ede982d2daba0589ff7c1034feed76c">   67</a></span>&#160;    <a class="code" href="class_tool_interface.html#a5ede982d2daba0589ff7c1034feed76c">start</a> (<span class="keywordtype">int</span> x, <span class="keywordtype">int</span> y, <a class="code" href="local_types_8h.html#a3ecbdde19ccb48639e25359e09b9f2ff">BitMask</a> modifiers, <a class="code" href="local_types_8h.html#a3ecbdde19ccb48639e25359e09b9f2ff">BitMask</a> buttons) = 0;</div>
<div class="line"><a name="l00068"></a><span class="lineno">   68</span>&#160; </div>
<div class="line"><a name="l00078"></a><span class="lineno">   78</span>&#160;    <span class="keyword">virtual</span></div>
<div class="line"><a name="l00079"></a><span class="lineno">   79</span>&#160;    <span class="keywordtype">void</span></div>
<div class="line"><a name="l00080"></a><span class="lineno"><a class="line" href="class_tool_interface.html#ab93188bd97a99ede4370d1917d66e35a">   80</a></span>&#160;    <a class="code" href="class_tool_interface.html#ab93188bd97a99ede4370d1917d66e35a">update</a> (<span class="keywordtype">int</span> x, <span class="keywordtype">int</span> y, <a class="code" href="local_types_8h.html#a3ecbdde19ccb48639e25359e09b9f2ff">BitMask</a> modifiers, <a class="code" href="local_types_8h.html#a3ecbdde19ccb48639e25359e09b9f2ff">BitMask</a> buttons) = 0;</div>
<div class="line"><a name="l00081"></a><span class="lineno">   81</span>&#160; </div>
<div class="line"><a name="l00092"></a><span class="lineno">   92</span>&#160;    <span class="keyword">virtual</span></div>
<div class="line"><a name="l00093"></a><span class="lineno">   93</span>&#160;    <span class="keywordtype">void</span></div>
<div class="line"><a name="l00094"></a><span class="lineno"><a class="line" href="class_tool_interface.html#a4fb40ef19c64340bf59b135fbe2df84a">   94</a></span>&#160;    <a class="code" href="class_tool_interface.html#a4fb40ef19c64340bf59b135fbe2df84a">end</a> (<span class="keywordtype">int</span> x, <span class="keywordtype">int</span> y, <a class="code" href="local_types_8h.html#a3ecbdde19ccb48639e25359e09b9f2ff">BitMask</a> modifiers, <a class="code" href="local_types_8h.html#a3ecbdde19ccb48639e25359e09b9f2ff">BitMask</a> buttons) = 0;</div>
<div class="line"><a name="l00095"></a><span class="lineno">   95</span>&#160;  </div>
<div class="line"><a name="l00099"></a><span class="lineno">   99</span>&#160;    <span class="keyword">virtual</span></div>
<div class="line"><a name="l00100"></a><span class="lineno">  100</span>&#160;    <span class="keywordtype">void</span></div>
<div class="line"><a name="l00101"></a><span class="lineno"><a class="line" href="class_tool_interface.html#a343cb70ca884519bd09b50ce5e599c49">  101</a></span>&#160;    <a class="code" href="class_tool_interface.html#a343cb70ca884519bd09b50ce5e599c49">draw</a> () <span class="keyword">const</span> = 0;</div>
<div class="line"><a name="l00102"></a><span class="lineno">  102</span>&#160;    </div>
<div class="line"><a name="l00103"></a><span class="lineno">  103</span>&#160;  <span class="keyword">protected</span>:</div>
<div class="line"><a name="l00105"></a><span class="lineno"><a class="line" href="class_tool_interface.html#a998b140ab5373f0fe15571e485eaadd7">  105</a></span>&#160;    <a class="code" href="class_tool_interface.html#a998b140ab5373f0fe15571e485eaadd7">ToolInterface</a> ()</div>
<div class="line"><a name="l00106"></a><span class="lineno">  106</span>&#160;    {</div>
<div class="line"><a name="l00107"></a><span class="lineno">  107</span>&#160;    }</div>
<div class="line"><a name="l00108"></a><span class="lineno">  108</span>&#160; </div>
<div class="line"><a name="l00109"></a><span class="lineno">  109</span>&#160;  <span class="keyword">private</span>:</div>
<div class="line"><a name="l00111"></a><span class="lineno"><a class="line" href="class_tool_interface.html#a03967bd41a60798eabfebbe2ca3b73a3">  111</a></span>&#160;    <a class="code" href="class_tool_interface.html#a03967bd41a60798eabfebbe2ca3b73a3">ToolInterface</a> (<span class="keyword">const</span> <a class="code" href="class_tool_interface.html">ToolInterface</a>&amp;)</div>
<div class="line"><a name="l00112"></a><span class="lineno">  112</span>&#160;    {</div>
<div class="line"><a name="l00113"></a><span class="lineno">  113</span>&#160;      assert(<span class="keyword">false</span>);</div>
<div class="line"><a name="l00114"></a><span class="lineno">  114</span>&#160;    }</div>
<div class="line"><a name="l00115"></a><span class="lineno">  115</span>&#160; </div>
<div class="line"><a name="l00117"></a><span class="lineno">  117</span>&#160;    <a class="code" href="class_tool_interface.html">ToolInterface</a>&amp;</div>
<div class="line"><a name="l00118"></a><span class="lineno"><a class="line" href="class_tool_interface.html#a21ed48c54f961b92bb7f4014cf46b257">  118</a></span>&#160;    <a class="code" href="class_tool_interface.html#a21ed48c54f961b92bb7f4014cf46b257">operator= </a>(<span class="keyword">const</span> <a class="code" href="class_tool_interface.html">ToolInterface</a>&amp;)</div>
<div class="line"><a name="l00119"></a><span class="lineno">  119</span>&#160;    {</div>
<div class="line"><a name="l00120"></a><span class="lineno">  120</span>&#160;      assert(<span class="keyword">false</span>); <span class="keywordflow">return</span> (*<span class="keyword">this</span>);</div>
<div class="line"><a name="l00121"></a><span class="lineno">  121</span>&#160;    }</div>
<div class="line"><a name="l00122"></a><span class="lineno">  122</span>&#160;};</div>
<div class="line"><a name="l00123"></a><span class="lineno">  123</span>&#160;<span class="preprocessor">#endif </span><span class="comment">// TOOL_INTERFACE_H_</span></div>
<div class="ttc" id="aclass_tool_interface_html"><div class="ttname"><a href="class_tool_interface.html">ToolInterface</a></div><div class="ttdoc">the parent class of all the select and the transform tool classes</div><div class="ttdef"><b>Definition:</b> toolInterface.h:49</div></div>
<div class="ttc" id="aclass_tool_interface_html_a03967bd41a60798eabfebbe2ca3b73a3"><div class="ttname"><a href="class_tool_interface.html#a03967bd41a60798eabfebbe2ca3b73a3">ToolInterface::ToolInterface</a></div><div class="ttdeci">ToolInterface(const ToolInterface &amp;)</div><div class="ttdoc">Copy constructor - tools are non-copyable</div><div class="ttdef"><b>Definition:</b> toolInterface.h:111</div></div>
<div class="ttc" id="aclass_tool_interface_html_a21ed48c54f961b92bb7f4014cf46b257"><div class="ttname"><a href="class_tool_interface.html#a21ed48c54f961b92bb7f4014cf46b257">ToolInterface::operator=</a></div><div class="ttdeci">ToolInterface &amp; operator=(const ToolInterface &amp;)</div><div class="ttdoc">Equal operator - tools are non-copyable</div><div class="ttdef"><b>Definition:</b> toolInterface.h:118</div></div>
<div class="ttc" id="aclass_tool_interface_html_a343cb70ca884519bd09b50ce5e599c49"><div class="ttname"><a href="class_tool_interface.html#a343cb70ca884519bd09b50ce5e599c49">ToolInterface::draw</a></div><div class="ttdeci">virtual void draw() const =0</div><div class="ttdoc">a rendering facility used by a tool. For instance, if this tool is a selection tool,...</div></div>
<div class="ttc" id="aclass_tool_interface_html_a4fb40ef19c64340bf59b135fbe2df84a"><div class="ttname"><a href="class_tool_interface.html#a4fb40ef19c64340bf59b135fbe2df84a">ToolInterface::end</a></div><div class="ttdeci">virtual void end(int x, int y, BitMask modifiers, BitMask buttons)=0</div><div class="ttdoc">set final state of the tool from the screen coordinates of the mouse as well as the value of the modi...</div></div>
<div class="ttc" id="aclass_tool_interface_html_a5ede982d2daba0589ff7c1034feed76c"><div class="ttname"><a href="class_tool_interface.html#a5ede982d2daba0589ff7c1034feed76c">ToolInterface::start</a></div><div class="ttdeci">virtual void start(int x, int y, BitMask modifiers, BitMask buttons)=0</div><div class="ttdoc">set the initial state of the tool from the screen coordinates of the mouse as well as the value of th...</div></div>
<div class="ttc" id="aclass_tool_interface_html_a6cbd00e85c2e49d19bf30ca06a0cf1ab"><div class="ttname"><a href="class_tool_interface.html#a6cbd00e85c2e49d19bf30ca06a0cf1ab">ToolInterface::~ToolInterface</a></div><div class="ttdeci">virtual ~ToolInterface()</div><div class="ttdoc">Destructor.</div><div class="ttdef"><b>Definition:</b> toolInterface.h:52</div></div>
<div class="ttc" id="aclass_tool_interface_html_a998b140ab5373f0fe15571e485eaadd7"><div class="ttname"><a href="class_tool_interface.html#a998b140ab5373f0fe15571e485eaadd7">ToolInterface::ToolInterface</a></div><div class="ttdeci">ToolInterface()</div><div class="ttdoc">Default constructor</div><div class="ttdef"><b>Definition:</b> toolInterface.h:105</div></div>
<div class="ttc" id="aclass_tool_interface_html_ab93188bd97a99ede4370d1917d66e35a"><div class="ttname"><a href="class_tool_interface.html#ab93188bd97a99ede4370d1917d66e35a">ToolInterface::update</a></div><div class="ttdeci">virtual void update(int x, int y, BitMask modifiers, BitMask buttons)=0</div><div class="ttdoc">update the state of the tool from the screen coordinates of the mouse as well as the value of the mod...</div></div>
<div class="ttc" id="alocal_types_8h_html"><div class="ttname"><a href="local_types_8h.html">localTypes.h</a></div></div>
<div class="ttc" id="alocal_types_8h_html_a3ecbdde19ccb48639e25359e09b9f2ff"><div class="ttname"><a href="local_types_8h.html#a3ecbdde19ccb48639e25359e09b9f2ff">BitMask</a></div><div class="ttdeci">unsigned int BitMask</div><div class="ttdoc">The type for bit masks used for recognizing key pressed by user.</div><div class="ttdef"><b>Definition:</b> localTypes.h:107</div></div>
</div><!-- fragment --></div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="dir_9654b8d08f4bba4e84b362c5fd320bee.html">apps</a></li><li class="navelem"><a class="el" href="dir_b812044310263d1df0acdcc34fa78063.html">point_cloud_editor</a></li><li class="navelem"><a class="el" href="dir_e7676f72fdf944a58a9890202aea4fdd.html">include</a></li><li class="navelem"><a class="el" href="dir_f36a0c0a6789487b19709622e8aaedff.html">pcl</a></li><li class="navelem"><a class="el" href="dir_dfd6ef21606ddfa5cd0b7ee0903ae9ec.html">apps</a></li><li class="navelem"><a class="el" href="dir_4eea226eade4b66d41c153c54681c108.html">point_cloud_editor</a></li><li class="navelem"><a class="el" href="tool_interface_8h.html">toolInterface.h</a></li>
    <li class="footer">制作者 <a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.1 </li>
  </ul>
</div>
</body>
</html>
